  /**
   * Generate time : 2016-04-07 18:03:09
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ci.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCIEquipmentInfo 
 * table comment : 关键设备信息 
 */
public class ZMCIEquipmentInfo extends DaoEPBase {

	private String recCreator = " ";		/* 创建人*/
	private String recCreatorTime = " ";		/* 创建时间*/
	private String recRevisorTime = " ";		/* 修改时间*/
	private String recRevisor = " ";		/* 修改人*/
	private String archiveFlag = " ";		/* 归档标志*/
	private String stateId = " ";		/* 数据状态*/
	private String appStateId = " ";		/* 审核状态*/
	private String taskId = " ";		/* 工作流任务号*/
	private String fdKeyId = " ";		/* 主键*/
	private String fdMiningName = " ";		/* 矿井名称*/
	private String fdEquipmentName = " ";		/* 设备*/
	private String fdEquipmentNo = " ";		/* 设备编号*/
	private String fdEquipmentStatus = " ";		/* 设备状态*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("recCreator");
	eiColumn.setFieldLength(64);	
	eiColumn.setDescName("创建人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("recCreatorTime");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("创建时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("recRevisorTime");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("修改时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("recRevisor");
	eiColumn.setFieldLength(64);	
	eiColumn.setDescName("修改人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("archiveFlag");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName("归档标志");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("stateId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("数据状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("appStateId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("审核状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("taskId");
	eiColumn.setFieldLength(64);	
	eiColumn.setDescName("工作流任务号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("设备");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentNo");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("设备编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentStatus");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("设备状态");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCIEquipmentInfo() {
		initMetaData();
	}
	
	/**
	 * get the recCreator - 创建人
	 * @return the recCreator
	 */
	public String getRecCreator() {
		return this.recCreator;
	}
	
	/**
	 * set the recCreator - 创建人
	 */
	public void setRecCreator(String recCreator) {
		this.recCreator = recCreator;
	}
	/**
	 * get the recCreatorTime - 创建时间
	 * @return the recCreatorTime
	 */
	public String getRecCreatorTime() {
		return this.recCreatorTime;
	}
	
	/**
	 * set the recCreatorTime - 创建时间
	 */
	public void setRecCreatorTime(String recCreatorTime) {
		this.recCreatorTime = recCreatorTime;
	}
	/**
	 * get the recRevisorTime - 修改时间
	 * @return the recRevisorTime
	 */
	public String getRecRevisorTime() {
		return this.recRevisorTime;
	}
	
	/**
	 * set the recRevisorTime - 修改时间
	 */
	public void setRecRevisorTime(String recRevisorTime) {
		this.recRevisorTime = recRevisorTime;
	}
	/**
	 * get the recRevisor - 修改人
	 * @return the recRevisor
	 */
	public String getRecRevisor() {
		return this.recRevisor;
	}
	
	/**
	 * set the recRevisor - 修改人
	 */
	public void setRecRevisor(String recRevisor) {
		this.recRevisor = recRevisor;
	}
	/**
	 * get the archiveFlag - 归档标志
	 * @return the archiveFlag
	 */
	public String getArchiveFlag() {
		return this.archiveFlag;
	}
	
	/**
	 * set the archiveFlag - 归档标志
	 */
	public void setArchiveFlag(String archiveFlag) {
		this.archiveFlag = archiveFlag;
	}
	/**
	 * get the stateId - 数据状态
	 * @return the stateId
	 */
	public String getStateId() {
		return this.stateId;
	}
	
	/**
	 * set the stateId - 数据状态
	 */
	public void setStateId(String stateId) {
		this.stateId = stateId;
	}
	/**
	 * get the appStateId - 审核状态
	 * @return the appStateId
	 */
	public String getAppStateId() {
		return this.appStateId;
	}
	
	/**
	 * set the appStateId - 审核状态
	 */
	public void setAppStateId(String appStateId) {
		this.appStateId = appStateId;
	}
	/**
	 * get the taskId - 工作流任务号
	 * @return the taskId
	 */
	public String getTaskId() {
		return this.taskId;
	}
	
	/**
	 * set the taskId - 工作流任务号
	 */
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdMiningName - 矿井名称
	 * @return the fdMiningName
	 */
	public String getFdMiningName() {
		return this.fdMiningName;
	}
	
	/**
	 * set the fdMiningName - 矿井名称
	 */
	public void setFdMiningName(String fdMiningName) {
		this.fdMiningName = fdMiningName;
	}
	/**
	 * get the fdEquipmentName - 设备
	 * @return the fdEquipmentName
	 */
	public String getFdEquipmentName() {
		return this.fdEquipmentName;
	}
	
	/**
	 * set the fdEquipmentName - 设备
	 */
	public void setFdEquipmentName(String fdEquipmentName) {
		this.fdEquipmentName = fdEquipmentName;
	}
	/**
	 * get the fdEquipmentNo - 设备编号
	 * @return the fdEquipmentNo
	 */
	public String getFdEquipmentNo() {
		return this.fdEquipmentNo;
	}
	
	/**
	 * set the fdEquipmentNo - 设备编号
	 */
	public void setFdEquipmentNo(String fdEquipmentNo) {
		this.fdEquipmentNo = fdEquipmentNo;
	}
	/**
	 * get the fdEquipmentStatus - 设备状态
	 * @return the fdEquipmentStatus
	 */
	public String getFdEquipmentStatus() {
		return this.fdEquipmentStatus;
	}
	
	/**
	 * set the fdEquipmentStatus - 设备状态
	 */
	public void setFdEquipmentStatus(String fdEquipmentStatus) {
		this.fdEquipmentStatus = fdEquipmentStatus;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setRecCreator(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recCreator")), recCreator));
		setRecCreatorTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recCreatorTime")), recCreatorTime));
		setRecRevisorTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recRevisorTime")), recRevisorTime));
		setRecRevisor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("recRevisor")), recRevisor));
		setArchiveFlag(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("archiveFlag")), archiveFlag));
		setStateId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("stateId")), stateId));
		setAppStateId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("appStateId")), appStateId));
		setTaskId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("taskId")), taskId));
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningName")), fdMiningName));
		setFdEquipmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentName")), fdEquipmentName));
		setFdEquipmentNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentNo")), fdEquipmentNo));
		setFdEquipmentStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentStatus")), fdEquipmentStatus));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("recCreator",StringUtils.toString(recCreator, eiMetadata.getMeta("recCreator")));	
			map.put("recCreatorTime",StringUtils.toString(recCreatorTime, eiMetadata.getMeta("recCreatorTime")));	
			map.put("recRevisorTime",StringUtils.toString(recRevisorTime, eiMetadata.getMeta("recRevisorTime")));	
			map.put("recRevisor",StringUtils.toString(recRevisor, eiMetadata.getMeta("recRevisor")));	
			map.put("archiveFlag",StringUtils.toString(archiveFlag, eiMetadata.getMeta("archiveFlag")));	
			map.put("stateId",StringUtils.toString(stateId, eiMetadata.getMeta("stateId")));	
			map.put("appStateId",StringUtils.toString(appStateId, eiMetadata.getMeta("appStateId")));	
			map.put("taskId",StringUtils.toString(taskId, eiMetadata.getMeta("taskId")));	
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningName",StringUtils.toString(fdMiningName, eiMetadata.getMeta("fdMiningName")));	
			map.put("fdEquipmentName",StringUtils.toString(fdEquipmentName, eiMetadata.getMeta("fdEquipmentName")));	
			map.put("fdEquipmentNo",StringUtils.toString(fdEquipmentNo, eiMetadata.getMeta("fdEquipmentNo")));	
			map.put("fdEquipmentStatus",StringUtils.toString(fdEquipmentStatus, eiMetadata.getMeta("fdEquipmentStatus")));	
			
		return map;
	
	}
}